import React from 'react';
// import {withRouter} from "react-router-dom";
import './Post.css';

const post = (props) => {
    // console.log('props')
    // console.log(props)
    return (
        <article className="Post" onClick={props.selectPost}>
            <h1>{props.title}</h1>
            <div className="Info">
                <div className="Author">{props.author}</div>
            </div>
        </article>

    )

}

export default post;
